#ifndef __TASK__BUTTON_H__
#define __TASK__BUTTON_H__

#include "task_public.h"

typedef struct {
	uint16_t BUTTON_UP;
	uint16_t BUTTON_DOWN;
	uint16_t BUTTON_LEFT;
	uint16_t BUTTON_RIGHT;
	uint16_t BUTTON_CENTER;
	uint16_t BUTTON_VAL_NOW;
} buttonVal_t;

void button_task(void* parm);
buttonVal_t button_ad_get(void);
void task_button_init(void);
uint8_t task_button_event_get(void);

#endif
